-
Notifications
You must be signed in to change notification settings - Fork 65
use session storage for msg history #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Review Summary by QodoUse sessionStorage for message history instead of localStorage
WalkthroughsDescription• Replace localStorage with sessionStorage for message history • Remove conversationId field from stored user messages • Simplify message initialization to use only current conversation • Reduce storage complexity by eliminating cross-conversation message tracking Diagramflowchart LR
A["Message Storage"] -->|"Changed from"| B["localStorage"]
A -->|"Changed to"| C["sessionStorage"]
D["Message Structure"] -->|"Removed"| E["conversationId field"]
F["Message Init"] -->|"Simplified to"| G["Current conversation only"]
File Changes1. src/lib/helpers/store.js
|
Code Review by Qodo
1. JSON.parse on session data
|
No description provided.